package 
{
	import flash.display.Sprite;
	import flash.events.Event;
	import starling.core.Starling;
	
	[SWF(width="550", height="550", frameRate="60", backgroundColor="0x000000")]
	public class Main extends Sprite 
	{
		private var mStarling:Starling = null;
		
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			mStarling = new Starling(Game, stage);
			mStarling.enableErrorChecking = false;
			mStarling.start();
			mStarling.showStats = true;
		}
	}
}